{% extends "base.html" %}

{% block title %}{{ game.type }} - {{ application_name }}{% endblock %}

{% block body %}
    <h2>{{ game.get_box.name }}</h2>
    <ul class="users">
       {% for user in game.get_users %} 
            <li> {{ user.nickname }} </li>
       {% endfor %}
    </ul>
    <div class="objects">
        {% for item in game.objects %}

        {% endfor %}
    </div>
    {% if game.get_begin %}
        <div class="log">
            <h2>Лог игры:</h2>
        </div>
        {% for item in game.get_log %}
            <p> {{ item.message }}  </p>
        {% endfor %}
    {% else %}
        {% if not game.has_current_user %}
            <form method="post">
                <input type="submit" name="join" value="Присоединиться"/>
            </form>
        {% endif %}
    {% endif  %}
{% endblock %}
